﻿using AutoMapper;
using Traceability.App.Applications.Command.Aquaculture;
using Traceability.App.Applications.Command.DeepProce;
using Traceability.App.Applications.Command.Enterprise;
using Traceability.App.Applications.Command.Health;
using Traceability.App.Applications.Command.IMage;
using Traceability.App.Applications.Command.Slaughter;
using Traceability.App.Applications.Command.TraceabilityManagement;
using Traceability.Domain.Entity;

namespace Traceability.App.Applications
{
    public class MappingProfile:Profile
    {

        public MappingProfile() {


            CreateMap<TraceabilityManagement, AddTraceabilityCommand>().ReverseMap();
            CreateMap<TraceabilityManagement, UpdataTraceabilityCommand>().ReverseMap();
            CreateMap<TraceabilityManagement, DelTraceabilityCommand>().ReverseMap();
            CreateMap<AquacultureModel, AddAquacultureCommand>().ReverseMap();
            CreateMap<AquacultureModel, UpdataAquacultureCommand>().ReverseMap();
            CreateMap<HealthModel, AddHealthCommand>().ReverseMap();
            CreateMap<HealthModel, DelHealthCommand>().ReverseMap();
            CreateMap<HealthModel, UpdataHealthCommand>().ReverseMap();
            CreateMap<ImageModel, AddImageCommand>().ReverseMap();
            CreateMap<EnterpriseModel, AddEnterpriseCommand>().ReverseMap();
            CreateMap<EnterpriseModel,UpdataEnterpriseCommand>().ReverseMap();
           
            CreateMap<SlaughterModel,UpdataSlaughterCommand>().ReverseMap();
            CreateMap<SlaughterModel, AddSlaughterCommand>().ReverseMap();
            CreateMap<DeepProcessingModel, AddDeepCommand>().ReverseMap();
            CreateMap<DeepProcessingModel, UpdataDeepCommand>().ReverseMap();
            CreateMap<ImageModel, UpIMageCommand>().ReverseMap();
        }

    }
}
